import request from '@/utils/request'

//从配置中获取业务的地址
import {baseUrlConfig} from '@/config/config'
const basePath = baseUrlConfig.businessBaseUrl
// 分页查询
export const page = (data: any) => {
  return request({
    url: basePath + '/pax/deposit/find/page',
    method: 'post',
    data
  })
}

// 导出文件
export const downloadFile = (data: any) => {
  return request({
    url: basePath + '/pax/deposit/export',
    method: 'post',
    responseType: 'blob',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  })
}

/**
 * 查询数据
 * @returns
 */
export const searchDeposit = (searchData: any) => {
  return request({
    url: basePath + '/pax/deposit/find/page',
    method: 'POST',
    data: searchData
  })
}